-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate use of v1 tasks within v2 workflows #1721
Deprecate use of v1 tasks within v2 workflows #1721
Conversation
Note that the CI currently fails because of sqlite:
|
Benchmark comparisonGET /api/alive/
GET /api/v2/dataset/
GET /api/v2/job/
GET /api/v2/project/
GET /api/v2/workflow/
POST /api/v2/project/3/dataset/403/images/query/
GET /auth/current-user/
POST /auth/token/login/
|
…ows' of github.com:fractal-analytics-platform/fractal-server into 1712-on-hold-deprecate-use-of-v1-tasks-within-v2-workflows
The first one you said: we cannot have V1 tasks linked to V2 tasks any more. Because this action is required, we are completing this PR but we will not merge&release it until the relevant instances are ready.
Yes, this would the preferred approach. The script from #1712 should let you identify the workflows quickly, but then the legacy-task replacement has to be manual. We can also prepare a script for performing this kind of replacements, if that is useful, although it's TBD whether it would actually save us time. |
I think we'll be able to do this manually within an hour or 2, so no need for a script. It's not optimal that we have to change old workflows, but I agree that the trade-off here is worth it. I'll do this at FMI & can also handle it at UZH once the Ilastik task has been tested & verified :) |
All legacy tasks in V2 workflows have now been removed from both servers :) |
The migration added by this PR will fail (here) if performed on a database with a legacy Task in a WorkflowV2. Test:
select is_legacy_task from workflowtaskv2;
is_legacy_task
----------------
f
t
(2 rows)
select is_legacy_task from workflowtaskv2;
is_legacy_task
----------------
f
(1 row)
|
This cannot be merged&released until we verify that production instances do not include any such task (see script in #1712).
closes #1722
Checklist before merging
FIXME 1712
entriesCHANGELOG.md
main
into the current branch.